218
a:4:{s:8:"template";a:2:{s:56:"E:/xampp/htdocs/lauwen_php/Admin/Tpl/Category/index.html";b:1;s:28:"../Common/head_category.html";b:1;}s:9:"timestamp";i:1520260884;s:7:"expires";i:1520260887;s:13:"cache_serials";a:0:{}}<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>栏目</title>
    <link href="http://localhost/lauwen_php/Admin/Tpl/Public/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="http://localhost/lauwen_php/Admin/Tpl/Public/css/admin-category.css" type="text/css" rel="stylesheet"/>
    <script src="http://localhost/lauwen_php/Admin/Tpl/Public/js/jquery-3.2.1.min.js"></script>
    <script src="http://localhost/lauwen_php/Admin/Tpl/Public/js/bootstrap.min.js"></script>
</head><body>
<div class="container-fluid">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>栏目名称</th>
            <th>管理操作</th>
        </tr>
        </thead>
                <tr>
            <td class="col-sm-9 col-md-10 col-lg-10">动态</td>
            <td class="col-sm-3 col-md-2 col-lg-2">
                <a href="http://localhost/lauwen_php/admin.php?c=Category&m=update&cid=1" class="btn btn-success btn-xs">修改</a>
                <button type="button" onclick="category_del('1')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-9 col-md-10 col-lg-10">前端</td>
            <td class="col-sm-3 col-md-2 col-lg-2">
                <a href="http://localhost/lauwen_php/admin.php?c=Category&m=update&cid=12" class="btn btn-success btn-xs">修改</a>
                <button type="button" onclick="category_del('12')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-9 col-md-10 col-lg-10">后端</td>
            <td class="col-sm-3 col-md-2 col-lg-2">
                <a href="http://localhost/lauwen_php/admin.php?c=Category&m=update&cid=13" class="btn btn-success btn-xs">修改</a>
                <button type="button" onclick="category_del('13')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-9 col-md-10 col-lg-10">图片</td>
            <td class="col-sm-3 col-md-2 col-lg-2">
                <a href="http://localhost/lauwen_php/admin.php?c=Category&m=update&cid=18" class="btn btn-success btn-xs">修改</a>
                <button type="button" onclick="category_del('18')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
            </table>
</div>

<script type="text/javascript">
    function category_del(cid){
        if(confirm("确定删除该栏目吗？")){
            location.href = "./admin.php?c=Category&m=del&cid="+cid;
        }
    }
</script>

</body>
</html>